package com.ktdaddy.enums;


/**
 * @author kdaddy@163.com
 * @date 2021/4/29 22:52
 */
public enum LoginCode {
    LOGIN_SUCCESS(10000,"登录成功"),
    UNKNOWN_ACCOUNT_ERROR(10001,"账号不存在"),
    INCORRECT_CREDENTIALS_ERROR(10002,"账号或者密码错误"),
    LOCKED_ACCOUNT_ERROR(10003,"账号被锁定异常"),
    OTHER_ACCOUNT_ERROR(10004,"其他登入异常")
    ;


    public final Integer code;

    public final String desc;

    LoginCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
